import svc

class EvePaperDollClient(svc.paperDollClient):
    __guid__ = 'svc.evePaperDollClient'
    __replaceservice__ = 'paperDollClient'

    def GetDollDNA(self, scene, entity, dollGender, dollDnaInfo, typeID):
        bloodlineID = sm.GetService('info').GetBloodlineByTypeID(typeID).bloodlineID
        charSvc = sm.GetService('character')
        pos = entity.GetComponent('position').position
        doll = charSvc.AddCharacterToScene(entity.entityID, scene, dollGender, bloodlineID, dna=dollDnaInfo, position=pos, updateDoll=False)
        doll.doll.Update(charSvc.factory)
        dna = doll.doll.GetDNA()
        sm.GetService('character').RemoveCharacter(entity.entityID)
        return dna




